package com.hq.service.impl;

import com.hq.bean.Student;
import com.hq.dao.StuDao;
import com.hq.service.StuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StuServiceImpl implements StuService {
    @Resource
    StuDao stuDao;
    @Override
    public Student login(String name, String password) {
        return stuDao.login(name,password);
    }

    @Override
    public List liststu(Integer id) {
        return stuDao.liststu(id);
    }

    @Override
    public List listguanliyuan(String floorname, String name) {
        return stuDao.listguanliyuan(floorname,
                name);
    }

    @Override
    public List ckxq(Integer id) {
        return stuDao.ckxq(id);
    }

    @Override
    public List findstu(Integer id) {
        return stuDao.findstu(id);
    }
}
